package com.code.softeem.zuoye.demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 16:42
 * @description
 */
public abstract class Tank {
    private String atk;
    private String def;
    private String hp;

    public Tank() {
    }

    public Tank(String atk, String def, String hp) {
        this.atk = atk;
        this.def = def;
        this.hp = hp;
    }

    public String getAtk() {
        return atk;
    }

    public void setAtk(String atk) {
        this.atk = atk;
    }

    public String getDef() {
        return def;
    }

    public void setDef(String def) {
        this.def = def;
    }

    public String getHp() {
        return hp;
    }

    public void setHp(String hp) {
        this.hp = hp;
    }

    public abstract void gongji();
    public abstract void yidong();
    public abstract void die();
    public abstract void getInfo();
}
